package org.example.compent;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.slot.DefaultContext;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@LiteflowComponent("a")
public class ACmp extends NodeComponent {

    @Override
    public void process() throws Exception {
        DefaultContext contextBean = this.getContextBean(DefaultContext.class);
        String type = contextBean.getData("type").toString();
        log.info("传参-----type----{}" ,type);
        log.info("------a结点--------");
        contextBean.setData("a", "a节点执行了");
    }
}
